package com.wxj.book.service.impl;

import com.wxj.book.dao.ContentMapper;
import com.wxj.book.pojo.Content;
import com.wxj.book.service.ContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ContentServiceImpl implements ContentService {
    @Autowired
    private ContentMapper contentMapper;

    /**
     * 查询领取图书详情
     * @param major
     * @return
     */
    @Override
    public Content getByMajorId(Integer major) {
        return contentMapper.getByMajorId(major);
    }
}
